<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
    <%@ taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>ASIMS</title>
<link href="../CSS/style.css" rel="stylesheet" type="text/css" />
</head>

<script type="text/javascript">
function deleteNews(){
	tableList.action="deleteNews.action";
	tableList.submit();
}
function updateNews(){
	tableList.action="queryNewsById.action";
	tableList.submit();
}
</script>


<body>

	<div id="wrap">
		<div id="header">
			<h1 id="sitename"><a href="#">ASIMS</a></h1>
			<div id="nav">
				<div id="titleblock">
					<div id="subject">机场静态信息管理系统</div>
					<div id="spirit"><a href="#">王蒙 已登录</a> | <a href="user_edit.jsp" target="_parent">个人信息维护</a> | <a href="login.jsp" target="_parent">注销</a></div>
				 </div>
				<div id="topmenu">
					<ul>
						<li><a href="index.jsp">首页</a></li>
						<li><a href="user_manag.jsp">用户和角色管理</a></li>
						<li><a href="airline_manag_InAr.jsp">航班信息管理</a></li>
						<li><a href="facilities_manag.jsp">机场设施管理</a></li>
						<li class="active"><a href="news_view_intr.jsp">新闻中心</a></li>
					</ul>
				</div>
			</div>
			<div class="clear"></div>
			<div id="breadcrumb">网站路径：<a href="index.jsp">首页</a> &raquo; <a href="news_view_intr.jsp" class="active">新闻中心</a></div>
		</div>
		
		<div id="content">
			<div id="right">
			   <div class="post">
					<h2><a href="">新闻查询</a></h2>
						<form action="queryNews.action" method="post" enctype="multipart/form-data">
							<div class="contactform">
								<p class="first">
									<label for="newstitle">新闻标题：</label>
									<s:textfield name="news.newstitle"></s:textfield>
								</p>
								<p>
									<label for="publishtime">发布时间：</label>
									<s:textfield name="news.releasetime"></s:textfield>
								</p>
								<p>
									<label for="publisher">发布人：</label>
									<s:textfield name="news.newsreleaser"></s:textfield>
								</p>
								<p>
									<s:hidden name="news.newscategory" value="机场介绍"></s:hidden>
								</p>
								<div class="buttons">
									<div class="butarea1"></div>
									<button type="submit" class="button2" name="save">
										<img src="../images/find.png" alt=""/> 
										查询
									</button>
								</div>
							</div>
						</form>
			<form  name="tableList" method="post" enctype="multipart/form-data">
			<table cellspacing="0" cellpadding="0">
			<thead>
				<tr>
				  <th scope="col">新闻编号</th>
				  <th scope="col">新闻标题</th>
				  <th scope="col">发布时间</th>
				  <th scope="col">发布人</th>
				</tr>
			</thead>
			
			<tbody>
				<s:iterator value="#request.newsList" id="newsList" status="st">
				<tr>
				<td><s:radio name="checkedNewsId" list="{#newsList.newsId}" theme="simple" value="1" cssStyle="width:12.5%"/></td>
				  <td><a href="news.jsp"><span class="red"><s:property  value="#newsList.newstitle" /></span></a></td>
				  <td><s:property value="#newsList.releasetime" /></td>
				  <td><s:property value="#newsList.newsreleaser" /></td>
				</tr>
				</s:iterator>
				</tbody>
			  </table>
			  </form>
			</div>
			
				<div class="pagenavi">
					<span class="alignright"><a href="">下一页</a> &raquo;</span>
					<span class="alignleft">&laquo; <a href="">上一页</a></span>
				</div>
				<div class="buttons">
						<div class="butarea3"></div>
						<button type="submit" name="add" onClick="javascript:window.location.href='news_publish.jsp'">
							<img src="../images/add1-16.png" alt=""/> 
							新增
						</button>
						<button type="submit" name="del" onClick="deleteNews()">
							<img src="../images/cross.png" alt=""/> 
							删除
						</button>
						<button type="submit" name="revise" onClick="updateNews()">
							<img src="../images/textfield_key.png" alt=""/> 
							修改
						</button>
				</div>
			</div>
				
		<div id="sidebar">
			<div id="sidebartop"></div>
				 <h2>新闻浏览</h2>
					<ul>
					 <li><a href="queryAllIntrNews.action">机场介绍</a></li>
					  <li><a href="queryAllAirlNews.action">航班信息</a></li>
					  <li><a href="queryAllFaciNews.action">机场资源</a></li>
					  <li><a href="queryAllAgenNews.action">物业设施</a></li>
					  </ul>
				<h2>新闻发布</h2>
					<ul>
					  <li><a href="news_publish.jsp">发布新闻</a></li>
					</ul>
				<h2>新闻订阅</h2>
					<ul>
					  <li><a href="news_order.jsp">订阅新闻</a></li>
					</ul>
		</div>
		<div class="clear"></div>
		<div id="bottom">
			<p><img src="../images/copyright.jpg" /></p>
			<p><a href="">隐私权</a> | <a href="">&copy;版权</a> | <a href="">法律声明</a> | <a href="">电子邮件：admin@163.com</a>
		</div>
		</div>
		
		<div id="footer">
			<div id="credits">
				ASIMS Power by IBM
			</div>
		</div>
	</div>

</body>
</html>

